Skip to content

[codex] upgrade synapse sdk and core#11

Open
snissn wants to merge 3 commits intocodex/test-synapse-command-coveragefrom
codex/upgrade-synapse-sdk-core
Open

[codex] upgrade synapse sdk and core#11
snissn wants to merge 3 commits intocodex/test-synapse-command-coveragefrom
codex/upgrade-synapse-sdk-core

Conversation

@snissn
Copy link
Copy Markdown

@snissn snissn commented Apr 29, 2026

Summary

Stacked on #10. This PR upgrades the Synapse packages after the pre-upgrade command coverage was added, then converts the PR1 TODO coverage into active passing tests by fixing the current behavior gaps those TODOs identified.

What changed

  • Upgraded @filoz/synapse-sdk from ^0.40.0 to ^0.40.4.
  • Upgraded @filoz/synapse-core from ^0.3.1 to ^0.4.1.
  • Refreshed bun.lock for the new Synapse dependency graph. Bun also normalized the root incur lockfile range to match package.json; the installed incur package version is unchanged.
  • Made multi-upload fail the request if any requested file path cannot be read, instead of silently uploading only the readable subset.
  • Made dataset details return an object for empty piece metadata, matching its declared schema.
  • Made piece list return dataSetId as a string, matching its declared schema.
  • Updated README and skills/foc-cli/SKILL.md to note that every multi-upload path must be readable.

Test impact

The three TODO tests introduced in #10 are now active tests. The suite has no TODOs and no failures.

Validation

  • bun install --frozen-lockfile
  • bun run test — 32 pass, 0 fail
  • bunx biome check src tests
  • bunx tsc --noEmit
  • bun run build
  • git diff --check

Stacking note

Base is currently codex/test-synapse-command-coverage so reviewers can see only the upgrade/fix delta after #10. After #10 lands, this PR can be rebased or retargeted to main.

@snissn snissn marked this pull request as ready for review April 29, 2026 18:54
Copilot AI review requested due to automatic review settings April 29, 2026 18:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Upgrades the Synapse SDK/Core dependencies for the foc-cli package and adjusts CLI behavior + output mapping to match the declared schemas, converting the prior TODO regression tests into passing assertions.

Changes:

  • Bumped @filoz/synapse-sdk and @filoz/synapse-core, updating bun.lock accordingly.
  • Updated multi-upload to fail the whole request if any input path can’t be read, and documented this requirement.
  • Fixed schema mismatches in dataset details (empty metadata) and piece list (dataSetId type), enabling the previously TODO tests.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
skills/foc-cli/SKILL.md Documents stricter multi-upload behavior (all paths must be readable).
cli/tests/synapse-commands.test.ts Converts TODOs into passing tests for the behavior/schema fixes.
cli/src/commands/piece/list.ts Ensures dataSetId is returned as a string to match the command schema.
cli/src/commands/multi-upload.ts Fails early with FILE_READ_FAILED if any requested file cannot be read.
cli/src/commands/dataset/details.ts Returns metadata as an object consistently (including empty objects).
cli/package.json Upgrades Synapse dependencies.
cli/bun.lock Refreshes lockfile for the upgraded dependency graph / normalized ranges.
README.md Notes multi-upload requires all paths to be readable.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@snissn snissn requested a review from nijoe1 April 29, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants